package cn.xorange.commons.system.service.platform;

import cn.xorange.commons.core.basic.service.IBaseService;
import cn.xorange.commons.system.entity.platform.SysProduct;
import com.alibaba.fastjson2.JSONArray;

import java.util.List;
import java.util.Set;

/**
 * @author : yangjian
 * date : 2021/12/27
 * description :
 */
public interface ISysProductService extends IBaseService<SysProduct> {

    /**
     * 获取分组功能数量
     * param productId
     * return
     */
    int getProductMenuNum(Long productId);
    List<Long> getProductMenuIds(Long productId);
    List<Long> getProductMenuIds(Set<Long> productIds);

    void setProductMenus(Long productId, JSONArray menuIds);

}
